package my.study.org.springframework.jdbc.examples.example1.dao.impl;

import my.study.org.springframework.jdbc.examples.example1.bo.User;
import my.study.org.springframework.jdbc.examples.example1.dao.UserDaoInter;
import my.study.org.springframework.jdbc.examples.example1.mapper.UserMapper;

import org.springframework.beans.factory.annotation.Autowired;

public class MybatisUserDaoImpl implements UserDaoInter {
	@Autowired(required=true)
	private UserMapper userMapper;
		
	public void insert() {
		// TODO Auto-generated method stub
		
	}

	public void delete() {
		// TODO Auto-generated method stub
		
	}

	

	public User query(long id) {
		return this.userMapper.selectOne(id);		
	}

	public User update() {
		// TODO Auto-generated method stub
		return null;
	}

}
